package com.topvision.bureau.model.regmode;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 实体类对象
 * Created by gushenjie on 17/6/18.
 */

public class RegMode implements Parcelable {

    public RegMode() {
    }

    public RegMode(String regName, int regPic) {
        this.regName = regName;
        this.regPic = regPic;
    }

    //识别名称
    private String regName;
    //识别图片
    private int regPic;


    public String getRegName() {
        return regName;
    }

    public void setRegName(String regName) {
        this.regName = regName;
    }

    public int getRegPic() {
        return regPic;
    }

    public void setRegPic(int regPic) {
        this.regPic = regPic;
    }

    @Override
    public int describeContents() {
        return 0;
    }


    @Override
    public void writeToParcel(Parcel out, int flags) {
        out.writeString(regName);
        out.writeInt(regPic);

    }


    public static final Parcelable.Creator<RegMode> CREATOR = new Creator<RegMode>() {
        @Override
        public RegMode[] newArray(int size) {
            return new RegMode[size];
        }

        @Override
        public RegMode createFromParcel(Parcel in) {
            return new RegMode(in);
        }
    };

    public RegMode(Parcel in) {
        regName = in.readString();
        regPic = in.readInt();
    }
}
